num5 = [3,65,22,102,4]
for i in range(len(num5)-1):
    for j in range(len(num5)-i-1):
        if num5[j] > num5[j+1]:
            temp = num5[j]
            num5[j] = num5[j+1]
            num5[j+1] = temp
print(num5)




